package com.hjqjl.whdemo.net.api;

import com.hjqjl.whdemo.feature.feature0.model.GetImagesModel;
import com.hjqjl.whdemo.feature.feature0.model.SentencesModel;
import com.hjqjl.whdemo.net.entity.GetImagesEntity;

import java.util.HashMap;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

public interface ApiService {

    @GET("api/sentences")
    Observable<SentencesModel> getSentences();

    @GET("/api/getImages")
    Observable<GetImagesModel> getImages(@QueryMap HashMap<String, String> hashMap);

    @GET("/api/getImages")
    Observable<String> getImagesString(@QueryMap HashMap<String, String> hashMap);

    @GET("/api/getImages")
    Observable<GetImagesEntity> getImages2(@QueryMap HashMap<String, String> hashMap);
}